/*
 * @Author: zsc
 * @Date: 2022-06-14 22:19:16
 * @LastEditors: zsc
 * @LastEditTime: 2022-07-24 21:16:29
 * @Description: 楼宇人员
 */

import baseClass from '@/list/baseClass'
import _ from 'lodash'
export default class BuildingpersonClass extends baseClass {
  constructor(prop) {
    super(prop)
    this.index = _.get(prop, 'id', '')
    this.area = _.get(prop, 'area', '')
    this.name = _.get(prop, 'name', '')
    this.floor = _.get(prop, 'floor', '')
    this.roomNumber = _.get(prop, 'roomNumber', '')
    this.companyName = _.get(prop, 'companyName', '')
    this.personName = _.get(prop, 'personName', '')
    this.mobil = _.get(prop, 'mobil', '')
    this.idcard = _.get(prop, 'idcard', '')
    this.status = _.get(prop, 'status', '')
  }
  list() {
    return [

      {
        name: '单位名称',
        key: 'company.name',
        fixed: '',
        edit: false,
        show: true
      },
      {
        name: '姓名',
        key: 'real_name',
        fixed: '',
        edit: false,
        show: true
      },
      {
        name: '手机号',
        key: 'mobile',
        fixed: '',
        edit: false,
        show: true
      },
      {
        name: '身份证',
        key: 'id_card',
        fixed: '',
        edit: false,
        show: true
      },

      {
        name: '操作',
        key: 'action',
        fixed: 'right',
        edit: false,
        show: true,
        value: 500
      }
    ]
  }
}
